from rest_framework import serializers
from rest_framework_mongoengine import serializers as mongoserializers

from expertwords.models import ExpertWords

class ExpertWordsSerializer(mongoserializers.DynamicDocumentSerializer):
    id = serializers.CharField()

    class Meta:
        model = ExpertWords
        fields = '__all__'
